package com.control.dao;


import java.util.List;
import java.util.Map;

import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public abstract class BaseSqliteDao<T> extends SQLiteOpenHelper {
	
	private  static final int DATAVERSION = 1;
	
	private static final String DATANAME = "mydata.db";
	
	public String getCookerTable(){
		return null;
	}
	
	public BaseSqliteDao(Context context) {
		super(context, DATANAME, null, DATAVERSION);
	}
	

	@Override
	public void onCreate(SQLiteDatabase db) {
		TableManager.createTable(db);
	}
	
	
	@Override
	public void onUpgrade(SQLiteDatabase db, int arg1, int arg2) {
		TableManager.onUpgrade(db);
	}

	
	public void insert(ContentValues cv){
		
	}
	
	public void bathInsert(List<ContentValues> cvs){
		
	}
	
	public List<T>  fetchAllData(Map<String,String> param){
		return null;
	}
	
	public void update(ContentValues cv){
		
	}
	public List<T> fetchData(int rowId){
		return null;
	}
	public void deleteAll(){
		
	}
	public void deleteRowId(int rowId){
		
	}

}
